{	Problem: http://codeforces.ru/problemset/problem/78/B
 	Verdict: Accepted
}
const t:array[1..7] of char=('R','O','Y','G','V','B','I');
var i,c,n:longint;
begin  
read(n);
for i:=1 to 7 do
    write(t[i]);
c:=4;
for i:=8 to n do begin
    write(t[c]);
    inc(c);
    if c=8 then c:=4;
end;    
end.